package com.seek.springevent.controller;

import com.seek.springevent.model.Loan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@RestController
@RequestMapping("event/")
public class UserController {
    @RequestMapping("getLoan")
    public Loan getLoan(){
        Loan loan = new Loan();
        loan.setCustomerId(1L);
        loan.setLoanMoney(new BigDecimal(100));
        loan.setLocalDateTime(LocalDateTime.now());
        return loan;
    }
}
